package jiaerc.moreingredients.item;

import net.minecraft.item.Food;
import net.minecraft.item.Item;
//导入自己的类
import jiaerc.moreingredients.MoreIngredientsGroup;
import net.minecraft.item.ItemGroup;

public class Cabbage extends Item {
    public Cabbage() {
        super(new Properties().tab(MoreIngredientsGroup.MORE_INGREDIENTS_GROUP)
                .food(new Food.Builder()
                        .nutrition(3)
                        .saturationMod(0.6f)
                        .build()));
    }
}
/*
package jiaerc.foodcraft.item.vegetable;


import jiaerc.foodcraft.FoodCraftGroup;
import net.minecraft.item.Food;
import net.minecraft.item.Item;
import net.minecraft.potion.EffectInstance;
import net.minecraft.potion.Effects;

public class Cabbage extends Item {
    public Cabbage(){
        super(new Properties().tab(FoodCraftGroup.FOOD_CRAFT_TAB).food(new Food.Builder()
                .nutrition(3)
                .saturationMod(0.6f)
                .effect(() -> new EffectInstance(Effects.HEALTH_BOOST, 100, 1), 0.5f)
                .build()));
    }
}

 */